package com.qk.management.controller;

import com.qk.common.PageResult;
import com.qk.common.Result;
import com.qk.dto.operateLog.OperateLogDTO;
import com.qk.management.service.OperateLogService;
import com.qk.vo.operateLog.OperateLogVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
public class OperateLogController {
    @Autowired
    private OperateLogService operateLogService;

    @GetMapping("/logs")
    public Result operateLog(OperateLogDTO operateLogDTO){
        PageResult<OperateLogVO> pageResult = operateLogService.getLog(operateLogDTO);
        return Result.success(pageResult);
    }
}
